﻿using Newtonsoft.Json;

namespace AdminBase.Model
{
    /// <summary>
    /// 菜单数据传输模型
    /// </summary>
    public class MenusDto
    {
        /// <summary>
        /// ID
        /// </summary>
        [JsonProperty("id")]
        public long ID { get; set; }

        /// <summary>
        /// 标识
        /// </summary>
        [JsonProperty("sign")]
        public string Sign { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [JsonProperty("icon")]
        public string? Icon { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [JsonProperty("parentID")]
        public long? ParentID { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        [JsonProperty("children")]
        public List<MenusDto>? Children { get; set; }
    }
}
